#include <iostream>

using namespace std;

int main()
{
    freopen("prim.in", "r", stdin);
    freopen("prim.out", "w", stdout);
    unsigned int n;
    bool printed = false;
    cin >> n;
    for (unsigned int i = 2; n > 1 && i <= n; i++)
    {
        while (!(n % i))
        {
            if (printed)
                cout << '*' << i;
            else
            {
                cout << i;
                printed = true;
            }
            n /= i;
        }
    }
    cout << endl;
    return 0;
}
